import { createApp } from 'vue'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import 'element-plus/theme-chalk/display.css'
//引入formDesigner样式和图标
import './assets/style/designer.css'
import './assets/iconfont/iconfont.js'
//引入formDesigner样式和图标end

import scui from './scui'
import i18n from './locales'
import router from './router'
import store from './store'
import App from './App.vue'
//挂载相关的插件
import plugins from './components/formDesigner';
import { GlobalCmComponent } from "codemirror-editor-vue3";
import Axios from 'axios';
//挂载相关的插件end
const app = createApp(App);

app.use(store);
app.use(router);
app.use(ElementPlus);
app.use(i18n);
app.use(scui);
//挂载相关的插件
app.use(plugins);
app.use(GlobalCmComponent);

app.config.globalProperties.$axios = Axios;
//挂载相关的插件

//挂载app
app.mount('#app');
